import unittest

from unitest import count


class MyTestCase(unittest.TestCase):
    def setUp(self) -> None:
        print('测试开始')
    def test_add(self):
        c=count(10,20)
        r=c.add()
        self.assertEqual(r, 30)
    def test_add2(self):
        c=count(1,2)
        r1=c.add()
        self.assertEqual(r1,3)
    def tearDown(self) -> None:
        print('测试结束')


if __name__ == '__main__':
    unittest.main()
